﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.IO;

namespace KCurveAPI
{
  public class CFHAPIInvoke
  {
    // 获取股票成交数据
    [DllImport("GetSecuritiesInfoAPI.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)]
    public static extern int GetStockQuote(ref IStruct stock_quote);

    // 获取开收盘时间（包含中途休市时间）
    [DllImport("GetSecuritiesInfoAPI.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)]
    public static extern int GetQuoteTimeInfo(byte[] QuoteStartTime, byte[] PauseStartTime, byte[] PauseEndTime, byte[] QuoteEndTime);
  }
}
